<?php
/**
 * 汎用データの書き込み関数
 *
 */

/* ==============================
    saveData()
   ============================== */
if(!function_exists('saveData')){
    function saveData($sDataName,$mData,$sFolder=""){
        $sFolder = Empty($sFolder) ? "" : $sFolder . DIRECTORY_SEPARATOR;
        $sPath = DIR_DATA . $sFolder . $sDataName . ".dat";
        return (@file_put_contents($sPath,serialize($mData))) ? TRUE : FALSE;
    }
}




?>